/*
*  Copyright (C) 2009  Peter Kist & Jan Ripke
*
*  This program is free software: you can redistribute it and/or modify
*  it under the terms of the GNU General Public License as published by
*  the Free Software Foundation, either version 3 of the License, or
*  (at your option) any later version.
*
*  This program is distributed in the hope that it will be useful,
*  but WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*  GNU General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/

#pragma once

#include <Util/Spatial.h>
#include <Core/Entity/Types.h>
#include <Core/Entity/Entity.h>

namespace galaxy {
    namespace logic {
        namespace engine {
            namespace galaxy {

                class Sector: public entity::Entity
                {
                    util::BoundingBox<float> m_BoundingBox;
                    int                      m_Seed;

                public:

                    /** constant for the Sector's entity type */
                    static entity::Entity::Type c_SectorType;

                public:
                    Sector() { };
                    Sector(entity::EntityPtr const & owner) : Entity (owner) { };
                    Sector(entity::EntityPtr const & owner, util::Vector<float>& min, util::Vector<float>& max) 
                        : Entity (owner)
                    { 
                        m_BoundingBox.m_Min = min; 
                        m_BoundingBox.m_Max = max; 
                    };
                    virtual ~Sector() { };

                    virtual entity::Entity::Type& getEntityType () { return Sector::c_SectorType; };

                    util::BoundingBox<float>& getBoundingBox () { return m_BoundingBox; };
                    int getSeed () { return m_Seed; };
                    void setSeed (int seed) { m_Seed = seed; };
                };

            } // namespace galaxy
        } // namespace engine
    } // namespace logic
} // namespace galaxy
